/* $Id:question.h jjs $ */
/*
   Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
   Part of the Moros Project http://moros.sourceforge.net/

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License.
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY.

   See the COPYING file for more details.
*/
#ifndef QUESTION_H
#define QUESTION_H

#include <gtkmm.h>
#include <libglademm.h>

/// Ask the user a yes/no question

class question : public Gtk::Dialog
{
public:
	question(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); ///< Window
	virtual ~question(); ///< Remove window data
	sigc::signal<void> signal_yes;
	Gtk::Label* question_text;

protected:
	Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
	virtual void clicked_no();
	virtual void clicked_yes();
	Gtk::Button* question_no;
	Gtk::Button* question_yes;
};

void init_question();
void ask_question(std::string question, sigc::signal<void> signal_yes);

#endif //QUESTION_H

